package com.invoicerecognition.backend.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.invoicerecognition.backend.handler.JsonSetTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    @TableId(type = IdType.AUTO)    // 实现自增
    private Integer id;
    private Integer userId;
    private String teacherId;
    private String name;
    @TableField(typeHandler = JsonSetTypeHandler.class)
    private Set<String> students;
}
